// 导出数据对象
export default {
    namespaced: true,
    state: {
        bookimg: '',
        bookid: '',
        booktitle: '',
        bookpeople: '',
        booktag: [],
        booklastyime: '',
        bookjj: '',
        bookzj: '',
        bookzjnr: '',
        bookdjsl: '',
        bookzjsl: '',
        bookzs: '',
        booklist: []
    },
    mutations: {
        changebook(state, value) {
            state.bookimg = value.bookimg
            state.bookid = value.bookid
            state.booktitle = value.booktitle
            state.bookpeople = value.bookpeople
            state.booktag = value.booktag
            state.bookjj = value.bookjj
            state.bookzj = value.bookzj
            state.bookzjnr = value.bookzjnr
            state.booklastyime = value.booklastyime
            state.bookdjsl = value.bookdjsl
            state.bookzjsl = value.bookzjsl
            state.bookzs = value.bookzs
            state.booklx = value.booklx
            state.bookqian = value.bookqian
            state.bookwj = value.bookwj
                // console.log(state)
        },
        changebooklist(state, value) {
            state.booklist = value
                // console.log(state.booklist)
        },
        changenowbookid(state, value) {
            state.bookid = value
        },
        changenowbooktitle(state, value) {
            state.booktitle = value
        },
    },
    actions: {
        setbook(content, value) {
            content.commit("changebook", value)
        }
    },
    modules: {}
}